package cn.xn.hrms.infrastructure.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.PositionDTO;
import cn.xn.hrms.infrastructure.dataobject.PositionDO;
import cn.xn.hrms.infrastructure.dataobject.PositionSelectDO;

/**
 * @author ysz
 */
public interface PositionDao {

    int insertSelective(PositionDTO record);
    PositionDTO selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(PositionDTO record);
    List<PositionDO> selectAll(@Param("departmentId") Integer departmentId, @Param("positionName") String positionName);
    List<PositionSelectDO> selectAllByDepartmentId(@Param("departmentId") Integer departmentId);
    int updateIsDeletedByIdIn(@Param("updatedIsDeleted")Integer updatedIsDeleted,@Param("idCollection")Collection<Integer> idCollection);
}
